package com.sunshine.simplehospital.bean

import androidx.room.Entity
import androidx.room.ForeignKey

/**
 * Created by sunshine on 2020/4/28
 * 挂号记录
 */

@Entity(foreignKeys = [ForeignKey(
    entity = User::class,
    parentColumns = ["userId"],
    childColumns = ["userId"]
)],primaryKeys = ["registerId"]
)
class Register (
    val userId: String,
    val registerId: Int,
    val registerTime: String,
    val hospital: String,
    //科室
    val department: String,
    val doctor: String,
    //就诊时间
    val visitTime: String
)